Skip to content

build(deps): bump github.com/gopacket/gopacket from 1.6.1 to 1.7.2 - #546

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/gopacket/gopacket-1.7.2
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/github.com/gopacket/gopacket-1.7.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/gopacket/gopacket from 1.6.1 to 1.7.2.

Release notes

Sourced from github.com/gopacket/gopacket's releases.

v1.7.2

Security release. All versions up to and including v1.7.1 are affected for SCTP decoding. Upgrade if you decode untrusted packets or capture files.

Security fixes

Advisory Area
GHSA-358w-w75h-x6rx SCTP INIT, INIT-ACK, SACK and SHUTDOWN chunks, and INIT/HEARTBEAT/ERROR/ABORT parameters. v1.7.1 did not fix these

A crafted SCTP chunk (IP protocol 132) caused an out-of-bounds panic. The decoders now check each chunk type's minimum length, SACK gap and duplicate TSN counts, and parameter lengths, and return a decode error instead.

Exposure: gopacket.NewPacket with default options and DecodingLayerParser with IgnorePanic: false both recover, so those callers saw a decode error. A process crash needed SkipDecodeRecovery: true or IgnorePanic: true.

Other fixes

  • A valid SCTP chunk whose last parameter's padding sat outside the chunk length (RFC 9260 3.2) panicked. It now decodes.
  • gopacket.NewPacket returns ErrUnsupportedLayerType for unknown IP protocols (#168)

Credits

GHSA-358w-w75h-x6rx reported by @​Reload3d and validated by @​FoxhoundAI.

v1.7.1

Security release. All versions up to and including v1.7.0 are affected — upgrade is recommended for anyone decoding untrusted packets or capture files.

Security fixes

Crafted input caused runtime panics (out-of-bounds slice/index, or unsigned underflow producing an inverted range) in a number of layers/ decoders. Each is now bounded against the buffer, returning a decode error and setting SetTruncated() instead of crashing.

Advisory Area
CVE-2026-65819 TLS, DHCPv4, sFlow, IPSecAH, VRRPv2, Diameter, GTPv1U, ERSPAN, LCM, RadioTap, Dot11IE — the fix for this shipped in no prior release
GHSA-6h9g-cjv3-pg2c TCP MPTCP options — on the ordinary Ethernet→IP→TCP path, so any consumer decoding untrusted TCP was exposed
GHSA-25xj-ggj7-jqgf SIP header folding (port-auto-selected, single UDP datagram)
GHSA-cxrr-2gv2-m94w EtherIP, AGUEVar0, UDPLite, MPLS, EthernetCTP, PFLog, LinuxSLL, LinuxSLL2, PktapV1, Prism, PPP, FDDI

Note on exposure: gopacket.NewPacket with default options and DecodingLayerParser with IgnorePanic: false both recover, so those callers previously saw a decode error rather than a crash. A process crash landed on a direct DecodeFromBytes call, IgnorePanic: true, or SkipDecodeRecovery: true.

The GHSA-cxrr decoders split by trust model: the first five carry remote-attacker-controlled bytes, while PFLog, LinuxSLL/SLL2, PktapV1, Prism, PPP and FDDI are written by the host's own capture stack, making a crafted pcap from an untrusted source the realistic input rather than a packet off the wire.

Other fixes

  • Protocol decoder length checks across arp, ipsec, pppoe, rudp, sctp and vrrp (#163)
  • MDNS name serialization fix (#157)
  • Regression tests for DNS decodeSVCB truncated SvcParams, and for every advisory above

Credits

CVE-2026-65819 reported by @​mosajjal (Fenko). The three GHSAs above reported by zx (Jace) (@​manus-use) and validated by @​FoxhoundAI.

... (truncated)

Commits
  • 5080443 layers/sctp: bound chunk sub-decoders and parameters
  • 18c5805 decoder: return ErrUnsupportedLayerType for unknown IP protocols (#168)
  • 2220269 test(layers): add regression tests for the decoder panic advisories
  • de853ae layers:various: add length checks to twelve link and tunnel decoders
  • 888f295 layers/sip: reject a header continuation line before any header
  • 7cfad9e layers/tcp: bound MPTCP option length before subtype dispatch
  • f87e843 build(deps): bump actions/setup-go from 6 to 7 (#164)
  • 1c51bb8 test(dns): add regression test for decodeSVCB truncated-SvcParams panic
  • f8b2b11 fix MDNS name serialization (#157)
  • b772f56 layers:various: add protocol decoder length checks (#163)
  • Additional commits viewable in compare view


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Copilot AI balanced review requested due to automatic review settings November 10, 2026 16:00
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Nov 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the gopacket dependency update.

No open issues 🎉

What changed in this PR

Updates the indirect github.com/gopacket/gopacket dependency from v1.6.1 to v1.7.2 to incorporate upstream packet-decoder security fixes.

Changes:

  • Bumps the dependency version in go.mod.
  • Replaces the module and manifest checksums in go.sum.
File Description
go.sum Updates gopacket checksums for v1.7.2.
go.mod Requires gopacket v1.7.2 as an indirect dependency.

Review effort: Balanced

Bumps [github.com/gopacket/gopacket](https://github.com/gopacket/gopacket) from 1.6.1 to 1.7.2.
- [Release notes](https://github.com/gopacket/gopacket/releases)
- [Commits](gopacket/gopacket@v1.6.1...v1.7.2)

---
updated-dependencies:
- dependency-name: github.com/gopacket/gopacket
  dependency-version: 1.7.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/gopacket/gopacket-1.7.2 branch from 8cf40d6 to 2a6e02c Compare November 12, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant